package cn.zf.spring5;

/**
 * 使用spring set注入属性
 */
public class Book {
    private String bname;
    private String bauthor;
    private String adress;

    public void setBname(String bname) {
        this.bname = bname;
    }

    public void setBauthor(String bauthor) {
        this.bauthor = bauthor;
    }

    public void setAdress(String adress) {
        this.adress = adress;
    }



    public void testPrint() {

        System.out.println("Book{" +
                "bname='" + bname + '\'' +
                ", bauthor='" + bauthor + '\'' +
                ", adress='" + adress + '\'' +
                '}');

    }
}
